class DeviceModel{
  String titleValue;//标题
  int allDevice;//全部设备
  int onlineDevice;//在线设备

  DeviceModel(
      {this.titleValue, this.allDevice,this.onlineDevice});

  DeviceModel.fromJson(Map<String, dynamic> json) {
    titleValue = json['titleValue'];
    allDevice = json['allDevice'];
    onlineDevice=json['onlineDevice'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['titleValue'] = this.titleValue;
    data['allDevice'] = this.allDevice;
    data['onlineDevice']=this.onlineDevice;
    return data;
  }
}